<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>返回顶部导航栏</title>
<script type="text/javascript" src="./js/返回顶部导航栏.js"></script>
<script type="text/javascript" src="/js/animate.js"></script>
<link type="text/css" rel="stylesheet" href="./css/index.css">
</head>

<body>
    <!-- 导航栏 -->
    <div class=w>
        <div class="nav">
            <a class=nav-left href="#">
                <img src="./picture/night32.ico">
                <h1>小邵杂货铺</h1>
            </a>
            <div class=nav-right>
                <ul class=nav-column>
                    <li class="nav-li">
                        接码平台
                        <ul>
                            <li><a href="https://h5.miyun9876.xyz/zc.html?inviteCode=218558" target="_blank"><input
                                        type="submit" value="米云"></a></li>
                            <li><a href="http://45.117.10.137:81/invite/laogui1" target="_blank"><input type="submit"
                                        value="椰子"></a></li>
                            <li><a href="http://www.weilai.best?aff=laogui" target="_blank"><input type="submit"
                                        value="未来云"></a></li>
                            <li><a href="" target="_blank"><input type="submit" value="电竞云"></a></li>
                        </ul>
                    </li>
                    <li>
                        打码平台
                        <ul>
                            <li><a href="http://www.kuaishibie.cn/?spm=null" target="_blank"><input type="submit"
                                        value="图鉴"></a></li>
                            <li><a href="https://www.rrocr.com" target="_blank"><input type="submit" value="人人"></a>
                            </li>
                            <li><a href="www.baidu.com" target="_blank"><input type="submit" value="暂无"></a></li>
                        </ul>
                    </li>
                    <li>悬赏平台</li>
                    <li>偷撸工具</li>
                    <li>授权平台</li>
                </ul>
            </div>
        </div>
    </div>
    <!-- 主体内容 -->
    <div class="w body1">
        <div class=main>
            <div class="main-body">
                <div class="main-body-left">
                    <h3>登录</h3>
                    <input type="text" placeholder="输入账号">
                    <input type="password" placeholder="输入密码">
                    <input type="submit" value="登录" id="main-body-left-button">
                </div>

                <div class="main-body-right">
                    <h3>注册</h3>
                    <input type="text" placeholder="输入账号">
                    <input type="password" placeholder="输入密码">
                    <input type="submit" value="注册" id="main-body-right-button">
                </div>
                <div class="main-body-mask">
                    <span class="direction">→</span>
                    <h3>欢迎使用</h3>
                    <span>小邵杂货铺</span>
                    <img src="./picture/night.jpg">
                </div>
            </div>
            <script>
                //导航栏鼠标经过事件
                var navov = document.querySelector(".nav-column").querySelector("li")

                navov.addEventListener("mouseover", function () {
                    navov.style.overflow = "visible"
                })

                navov.addEventListener("mouseout", function () {
                    navov.style.overflow = "hidden"
                })

                //获取遮罩层
                var mask = document.querySelector(".main-body-mask")
                var ov = 'true'

                //遮罩层经过事件
                mask.addEventListener("mouseenter", function () {
                    if (ov) {
                        animate(mask, 400, function () {
                            mask.style.backgroundColor = 'rgb(0, 255, 153)'
                            mask.children[0].innerHTML = '←'
                        });
                        ov = false
                    } else {
                        animate(mask, 0, function () {
                            mask.style.backgroundColor = 'rgb(0, 255, 99)'
                            mask.children[0].innerHTML = '→'
                        });
                        ov = true
                    }
                })
                // mask.addEventListener("mouseenter", function () {
                //     clearInterval(a)
                //     var a = setInterval(function () {
                //         if (ov === "true") {
                //             var step = + 10
                //             if (mask.offsetLeft >= mask.offsetWidth) {
                //                 clearInterval(a)
                //                 mask.style.backgroundColor = 'rgb(0, 255, 153)'
                //                 ov = 'false'
                //             } else {
                //                 mask.style.left = mask.offsetLeft + step + 'px'
                //             }
                //         } else {
                //             var step1 = + 10
                //             if (mask.offsetLeft <= 0) {
                //                 clearInterval(a)
                //                 mask.style.backgroundColor = 'rgb(0, 255, 99)'
                //                 ov = 'true'
                //             } else {
                //                 mask.style.left = mask.offsetLeft - step1 + 'px'
                //             }
                //         }
                //     }, 15)
                // })
            </script>
        </div>
    </div>
</body>

</html>